<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'  %>
<%@page session="true"%>
<!DOCTYPE html >
<html>
<head>

<title>Job Hunter - liste des entreprises</title>
</head>
<body>


	<div id="breadcrumb">
		<a href="/main" >accueil</a> >
		<a href="/companiesList" >entreprises</a>
	</div>
<article class="article12">
<h1>Companies List</h1><a href="addCompany"><%@ include file="/img/addB.svg"%></a>
	<table class="dataTable display compact" >
	<thead>
		<tr>
			<th>Name</th>
			<th>WebSite</th>
			<th>Address</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${companiesList}" var="company"> 
		
			<tr>
				<td>${company.name }</td>
				<td>${company.website }</td>
				<td>${company.address }</td>
				<td>
					<a href="company?id=${company.id }"> <%@ include file="/img/seeB.svg"%></a>					
					<a href="updCompany?id=${company.id}"><%@ include file="/img/updB.svg"%></a> 
					<a href="delCompany?id=${company.id }"><%@ include file="/img/delB.svg"%></a> 
				</td>
			</tr>
		
		</c:forEach>
	
	</tbody>
	
	</table>
	
</article>
</body>
</html>